
import './App.scss'
import {BrowserRouter,Route,Switch,Redirect} from 'react-router-dom'
import Login from './pages/login'
import Layout from './pages/layout'
// import NotFound from './pages/404'
import NotFound  from './pages/404'

function App() {
  return (
  <BrowserRouter>
  <div className="app">
    <Switch>
      <Redirect exact from="/" to="/home"></Redirect>
    <Route path="/home" component={Layout} />
    <Route path="/login" component={Login} />
    <Route component={NotFound} />
    </Switch>
  </div>
  </BrowserRouter>
  )
}

export default App    

  